<%@ Register TagPrefix="airweb" Namespace="AirWeb.WebControls.TreeControl" Assembly="AirWeb.WebControls.TreeControl" %>
<%@ Page language="c#" SmartNavigation="true" inherits="FlashBack.Web.PicDirTree" CodeFile="PicDirTree.aspx.cs" CodeFileBaseClass="FlashBack.Web.PageBase" %>
<%@ Import Namespace="AirWeb.WebControls.TreeControl" %>
<%@ Import Namespace="FlashBack.Web" %>

<HTML>
  <HEAD>
		<meta name="GENERATOR" Content="Microsoft Visual Studio 7.0">
		<meta name="CODE_LANGUAGE" Content="C#">
		<LINK REL="stylesheet" Type="text/css" HREF="FlashBack.css">
			<script language="javascript">
		
		var IsPostBack = "<%=IsPostBack%>";
		var Autoselect = "<%=Autoselect%>";
		
		// Click on the first item in the tree
		function OnLoad()
		{
			if(IsPostBack == "True" || Autoselect == "False")
				return;
		
			var anchors = document.getElementsByTagName("a")
			var a = 0;
			
			for(a in anchors)
			{
				var href = anchors[a].href;
				if(href && href.indexOf("javascript") != -1)
				{
					anchors[a].click();
					return;
				}
			}
		}
		</script>
</HEAD>
	<body onload="OnLoad()">
		<asp:PlaceHolder ID="Header" Visible="False" Runat="server">
			<table height="26" width="100%" border="0" cellpadding="0" cellspacing="0">
				<tr id="headerrow">
					<td nowrap="true" width="100%" class="Header">
						<span>&nbsp;Photo Albums</span>
					</td>
				</tr>
			</table>	
		</asp:PlaceHolder>	
		<div class="searchBody">
			<form method="post" runat="server" ID="Form1">
				<airweb:TreeControl EmptyIcon="Images/none.gif" CollapseIcon="Images/minus.gif" ExpandIcon="Images/plus.gif" id="MyTree" runat="server">
				</airweb:TreeControl>
			</form>
		</div>
	</body>
</HTML>
